﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="H2.NET.Web.Reports.Rpt_Run_Data" Codebehind="Rpt_Run_Data.aspx.cs" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>数据维护</title>
    <style type="text/css">       
        .gv_boder{width:100%; margin-top:3px;}
        .gv_boder th{height:26px; background-color:#EDEDED;color:#6C6B6B; font-size: 10pt;font-family:Arial; font-weight:bold;padding-left:2px;}
        .gv_header{style:font-size: 20pt; font-family:Arial; color:#6C6B6B;text-decoration: none;}
        .gv_item_alternating_row{height:25px; font-size: 9pt;font-family:Arial; background-color:#F9F9F9;}
        .gv_item_row{height:25px; font-size: 9pt;font-family:Arial}
        .gv_selected_row{height:25px; padding-left:2px;font-size: 9pt;font-family:Arial}
        .gv_pager{}   
        .cursor_hand{cursor: hand;}      
        .gv_head_hide{display: none;}                 
    </style>
    
    <script type="text/javascript">
	    function winOpenFullScreen(strURL)
	    {
		    var sheight = screen.height-150;
		    var swidth = screen.width-10;
		    var winoption ="left=0,top=0,height="+sheight+",width="+swidth+",toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes";		
		    var tmp=window.open(strURL,'',winoption);
		    return tmp;
	    } 
	
	    function winOpenPopup(strURL,str_width,str_height,str_value,str_element,str_postback,str_multiple)
	    {
	        try
	        {
	            var var_time =new Date();
		        var winoption ="dialogWidth="+(parseInt(str_width) + 18)+"px;dialogHeight="+str_height+"px;dialogLeft: status:no; directories:yes;scrollbars:auto;Resizable=yes;";		
		        var tmp=window.showModalDialog(strURL+"&vt="+var_time,'',winoption);
        		
		        if(tmp != null &&  tmp != "" && tmp != undefined)
		        {
		            var o= eval('(' + tmp + ')'); 	
		            
		            //是否多选
		            if(str_multiple == "0")
		            {	        
		                document.getElementById(str_element).value=eval("o." + str_value);
		            }else
		            {
		                document.getElementById(str_element).value = document.getElementById(str_element).value + eval("o." + str_value) + ",";
		            }
    		        
		            //是否Postback
		            if(str_postback == "1")
		            {
		                __doPostBack(str_element,"change:"  + document.getElementById(str_element).value);
		            }
		        }
		    }catch(e)
		    {
		    }
	    }	
    </script>    
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <fieldset style="border:solid 1px #45A1C3; margin:0px 0px 0px 0px;">
           <legend style="font-weight: bold; font-size: 9pt; color: #45A1C3; font-family:Arial">数据维护</legend>
            <table cellpadding="0" cellspacing="0" width="<%=cfg_width %>">
                <tr>
                    <td style="width: 6px; height: 30px;">
                        </td>
                    <td style="height: 30px">
                                    <asp:Button ID="btnFilter" runat="server" Text="过滤条件" Width="80px" OnClick="btnFilter_Click"/>
                        <asp:Button ID="btnExport" runat="server" Text="导出 Excel" Width="105px" OnClick="btnExport_Click"/></td>
                    <td style="width: 6px; height: 30px;">
                        </td>
                </tr>
                <tr>
                    <td style="width: 6px;"></td>
                    <td><asp:Panel ID="pan_search" runat="server" Height="0px" Width="100%"></asp:Panel></td>
                    <td style="width: 6px;"></td>
                </tr>
                <tr>
                    <td style="height:10px;"></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td style="height: 20px; width:2px"><span style="font-size:6pt; font-family:Arial">&nbsp;</span></td>
                    <td style="height: 20px" valign="top">
                        <anthem:GridView ID="gv_rpt_run_data" runat="server" CssClass="gv_boder" Width="100%" BorderColor="#ACA899" BorderWidth="1px" GridLines="Both" BorderStyle="solid" AutoGenerateColumns="False" PageSize="12" AllowPaging="True" AllowSorting="True" OnSorting="gv_rpt_run_data_Sorting" OnRowDataBound="gv_rpt_run_data_RowDataBound">
                        <HeaderStyle ForeColor="#6C6B6B"/>                           
                        <Columns>
                            <asp:TemplateField HeaderText="CheckBox">
                                    <ItemTemplate>
                                        <font color="#666666" face="Arial" style="font-size: 2pt">&nbsp;</font><anthem:CheckBox ID="chk_items" AutoUpdateAfterCallBack="true" runat="server"/>
                                    </ItemTemplate> 
                                    <ItemStyle  ForeColor="#6C6B6B" HorizontalAlign="Center" />                                    
                                    <HeaderTemplate>
                                        <anthem:CheckBox ID="chk_items_all" runat="server" EnableCallBack="true" AutoCallBack="true" OnCheckedChanged="chk_items_all_CheckedChanged" />
                                    </HeaderTemplate>                                                                        
                                    <HeaderStyle Width="10px" HorizontalAlign="Center" Font-Names="Arial" Font-Overline="False" Font-Size="9pt" Font-Underline="False" ForeColor="#6C6B6B" />
                            </asp:TemplateField>
                        </Columns>
                        <PagerTemplate>                               
                        </PagerTemplate>
                        </anthem:GridView>                        
                        <asp:Table ID="tblPager" runat="server" Height="20px" Width="100%">
                            <asp:TableRow ID="TableRow1" runat="server" Height="20px">
                                <asp:TableCell ID="TableCell1" runat="server" Height="20px" Font-Size="9pt" ForeColor="#6C6B6B"><font color="#666666" face="Arial" style="font-size: 9pt">页次: </font>
                                <asp:Label ID="lblPageCurrent" runat="server" Text="1"></asp:Label>/<asp:Label ID="lblPageCount" runat="server" Text="1"></asp:Label><font color="#666666" face="Arial" style="font-size: 9pt">&nbsp;&nbsp;共</font><asp:Label ID="lblPageRow" runat="server" Text="0"></asp:Label><font color="#666666" face="Arial" style="font-size: 9pt">条记录</font>
                                <anthem:LinkButton ID="btnGoTo" runat="server" CssClass="link"><font color="#666666" face="Arial" style="font-size: 9pt"><%=clsCmm.getTextValue("frm_gv_list_txtGoTo")%></font></anthem:LinkButton>&nbsp;<anthem:DropDownList ID="drpGoTo" runat="server" Width="40px" Font-Size="9pt" OnSelectedIndexChanged="drpGoTo_SelectedIndexChanged" EnableCallBack="true" AutoCallBack="true"></anthem:DropDownList>&nbsp;&nbsp;
                                <anthem:LinkButton ID="btnFirst" runat="server" CssClass="link" CommandName="Pager" EnableCallBack="true" Font-Underline="false" CommandArgument="First" OnCommand="NavigateToPage"><font color="#666666" face="Arial" style="font-size: 9pt">首页</font></anthem:LinkButton>&nbsp;
                                <anthem:LinkButton ID="btnPrev" runat="server" CssClass="link" CommandName="Pager" EnableCallBack="true" Font-Underline="false" CommandArgument="Prev" OnCommand ="NavigateToPage"><font color="#666666" face="Arial" style="font-size: 9pt">前一页</font></anthem:LinkButton>&nbsp;
                                <anthem:LinkButton ID="btnNext" runat="server" CssClass="link" CommandName="Pager" EnableCallBack="true" Font-Underline="false" CommandArgument="Next" OnCommand="NavigateToPage"><font color="#666666" face="Arial" style="font-size: 9pt">下一页</font></anthem:LinkButton>&nbsp;
                                <anthem:LinkButton ID="btnLast" runat="server" CssClass="link" CommandName="Pager" EnableCallBack="true" Font-Underline="false" CommandArgument="Last" OnCommand="NavigateToPage"><font color="#666666" face="Arial" style="font-size: 9pt">尾页</font></anthem:LinkButton>&nbsp;&nbsp;                                          
                                </asp:TableCell>
                            </asp:TableRow>
                         </asp:Table></td>
                    <td style="height: 20px; width:2px"><span style="font-size:6pt; font-family:Arial">&nbsp;</span></td>
                </tr>
                <tr>
                    <td style="height:6px;"></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td><anthem:Button ID="Add" Width="60" runat="server" Text="增加" EnableCallBack="true" onclick="Add_Click" />&nbsp;
                    <anthem:Button ID="Modify" Width="60" runat="server" Text="修改" EnableCallBack="true" onclick="Modify_Click" />&nbsp;
                    <anthem:Button ID="Delete" Width="60" runat="server" Text="删除" EnableCallBack="true" onclick="Delete_Click" /></td>
                    <td></td>
                </tr>
            </table>
        </fieldset>
    </div>
    </form>
</body>
</html>
